oracle.pgx.api

## Class Scalar<V>

- java.lang.Object
- - oracle.pgx.api.Destroyable
  - - oracle.pgx.api.PgxManagedObject
    - - oracle.pgx.api.Scalar<V>

- Type Parameters:
    `V` - the value type
  All Implemented Interfaces:
    AutoCloseable

      public class Scalar<V>
      extends PgxManagedObject

  A scalar value.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `V` | `get()` Blocking version of `getAsync()`.
    `PgxFuture<V>` | `getAsync()`
    `PgxGraph` | `getGraph()` Gets the graph the scalar is bound to.
    `String` | `getName()`
    `PropertyType` | `getType()` Gets the type of this Scalar.
    `void` | `set(V value)` Blocking version of `#setAsync()`.
    `PgxFuture<Void>` | `setAsync(V value)` Sets the scalar value.
    `String` | `toString()`

    - ### Methods inherited from class oracle.pgx.api.PgxManagedObject

      `equals, hashCode`

    - ### Methods inherited from class oracle.pgx.api.Destroyable

      `close, destroy, destroyAsync`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### get

          @Generated(value="src/python/synchronize.py")
          public V get()
                throws ExecutionException,
                       InterruptedException

      Blocking version of `getAsync()`. Calls `getAsync()` and waits for the returned `PgxFuture` to complete.
      Throws:
        `InterruptedException` - if the caller thread gets interrupted while waiting for completion.
        `ExecutionException` - if any exception occurred during asynchronous execution. The actual exception will be nested.

    - #### getAsync

          public PgxFuture<V> getAsync()

    - #### getGraph

          public PgxGraph getGraph()

      Gets the graph the scalar is bound to.
      Returns:
        graph

    - #### getName

          public String getName()

      Specified by:
        `getName` in class `PgxManagedObject`
      Returns:
        the name identifying this managed object

    - #### getType

          public PropertyType getType()

      Gets the type of this Scalar.
      Returns:
        the type

    - #### set

          @Generated(value="src/python/synchronize.py")
          public void set(V value)
                   throws ExecutionException,
                          InterruptedException

      Blocking version of `#setAsync()`. Calls `#setAsync()` and waits for the returned `PgxFuture` to complete.
      Throws:
        `InterruptedException` - if the caller thread gets interrupted while waiting for completion.
        `ExecutionException` - if any exception occurred during asynchronous execution. The actual exception will be nested.

    - #### setAsync

          public PgxFuture<Void> setAsync(V value)

      Sets the scalar value.
      Parameters:
        `value` - the value to be assigned

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `PgxManagedObject`

Copyright © 2015. All rights reserved.